package com.demo.fulllink.service.impl;

import com.demo.fulllink.module.vo.NotifyVO;
import com.demo.fulllink.service.SmsNotifyService;
import com.demo.wormhole.component.mock.annotation.WormholeMock;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class SmsNotifyServiceImpl implements SmsNotifyService {
    private Logger logger = LoggerFactory.getLogger(SmsNotifyServiceImpl.class);
    
    @Override
    @WormholeMock(maxDelayTime = 10, minDelayTime = 2)
    public Boolean send(NotifyVO notifyVO) {
        logger.info("开始发送短信通知.....");
        try {
            Thread.sleep(5);
        } catch (InterruptedException e) {
        }
        return true;
    }
    
}
